package cn.bone.boot01.bean;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.PropertySource;
import org.springframework.stereotype.Component;

/**
 * Created by superbone on 2018/9/24.
 */
@Component
@PropertySource(value = {"classpath:fish-${spring.profiles.active}.properties"})
@ConfigurationProperties(prefix = "fish")
public class Fish {
    private String name;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
